﻿@model DateTime
@{
    var htmlAttributes = new Dictionary<string, Object>();
    htmlAttributes.Add("class", "timepicker");
    htmlAttributes.Add("readonly", "true"); 
}
@Html.TextBox("", String.Format("{0:d}", (Model.Date != null) ? Model.ToShortTimeString(): String.Empty), htmlAttributes)
